body {
  background: snow;
  color: #333;
  font-family: "Inconsolata", monospace;
  font-weight: 400;
  font-size: calc(1em + 0.5vw);
  max-width: min(80ch, 90%);  /* removed the space */
  margin: auto;
}

.topnav {
  margin-top: 30px;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}
  
.topnav li a:after {
  content:'\00B7';padding-left:5px;
  }

.topnav:last-child li a:after {
  padding-right:0;
  }

/* Change the color of links on hover */
.topnav a:hover {
  color: #13670F;
}

.topnav a.active {
  color: #9A00BF;
}

.card {
    perspective: 1000px;
    width: 300px;
    height: 400px;
}

.container {
  display: grid;
  grid-template-columns: auto auto auto;
  padding: 10px;
  gap: 2em;

}

.card-front img{
   width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.card:hover .card-inner {
    transform: rotateY(180deg);
}
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: center;
}
.card-back {
    transform: rotateY(180deg);
    background: #f8f9fa;
}
